package com.one.bean;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import java.io.Serializable;
import java.util.Date;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;
import org.springframework.format.annotation.DateTimeFormat;

/**
 * collect_footpoint
 *
 * @author
 */
@ApiModel(value = "CollectFootpoint",description = "足迹收藏表")
@Data
@AllArgsConstructor
@NoArgsConstructor
@Accessors(chain = true)
public class CollectFootpoint implements Serializable {
    /**
     * 唯一主键
     */
    @TableId(type = IdType.AUTO)
    @ApiModelProperty(value = "唯一主键")
    private Integer id;

    /**
     * 用户id
     */
    @ApiModelProperty(value = "用户id")
    private Integer userId;

    /**
     * 商品id
     */
    @ApiModelProperty(value = "商品id")
    private Integer productId;

    /**
     * 0- 收藏，1-足迹
     */
    @ApiModelProperty(value = "0- 收藏，1-足迹")
    private Integer type;

    /**
     *  1- 删除状态 0-使用状态
     */
    @ApiModelProperty(value = "1- 删除状态 0-使用状态")
    private Integer status;


    /**
     * 创建时间
     */
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @ApiModelProperty(value = "创建时间")
    private Date createDate;

    /**
     * 更新时间
     */
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @ApiModelProperty(value = "更新时间")
    private Date updateDate;

    private static final long serialVersionUID = 1L;
}